const initialState = {
  person: [
    {
      id: 1,
      name: 'qq',
      age: 20
    }
  ]
}

export default (state = initialState, action) => {
  console.log(state, action)
  switch (action.type) {
    case 'loadPersonSuccess':
      return {
        ...state.person,
        ...action.payload
      }
    default:
      return state
  }
}